from flask import Blueprint, render_template, jsonify
from flask_jwt_extended import jwt_required, get_jwt_identity

from src.db_models.models import User

page = Blueprint('page', __name__)

@page.route("/")
def index():
    return render_template("index.html")

@page.route("/login")
def login_page():
    return render_template("login.html")

@page.route("/test")
def test():
    return render_template("menu.html")

@page.route('/profile')
def personal_homepage():
    return render_template("profile.html")  # 取消 JWT 验证 # 显示用户的术语表

@page.route('/square')
def terminology_square():
    return render_template("square.html")

@page.route("/register")
def register():
    return render_template("register.html")